#include"myshell.h"
#include<stdio.h>


#define SIZE 1024

int main()
{
    char command_str[SIZE];
    while(1)
    {
        InitCommandString();
        PrintCommandPrompt();
        if(!GetCommandString(command_str, SIZE))
        {
            continue;
        }
        CheckRedir(command_str);
        ParseCommandString(command_str);
        if(BuiltInCommandExec())
        {
            continue;
        }
        ForkExec();
        //printf("echo %s\n", command_str);
    }

    return 0;
}
